package com.abaaba.project2.controller.wxcontroller;

import com.abaaba.project2.bean.vo.BaseRespVo;
import com.abaaba.project2.bean.vo.wx.*;
import com.abaaba.project2.service.wx.WXCatalogIndexService;
import com.abaaba.project2.service.wx.WXGoodsShowListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/catalog")
public class WXCatalogIndexController {

    @Autowired
    WXCatalogIndexService wxGoodsShowListService;

    @RequestMapping("/index")
    public WXCatalogIndexShowListVO WXCatalogShowList()
    {
        WXCatalogIndexShowListVO wxCatalogIndexShowListVO = wxGoodsShowListService.wxCatalogIndexShowList();
        return wxCatalogIndexShowListVO;
    }

    @RequestMapping("/current")
    public WXCatalogIndexLevelTwoShowListVO WXCatalogShowList(Integer id)
    {
        WXCatalogIndexLevelTwoShowListVO wxCatalogIndexLevelTwoShowListVO = wxGoodsShowListService.wxCatalogIndexLevelTwoShowList(id);
        return wxCatalogIndexLevelTwoShowListVO;
    }


}
